package ice.dao.util;

import java.sql.SQLException;

/**
 * @描述：实体数据库索引查询结果
 * @作者：abiao
 */
public class EntityQueryForIndexResult extends QueryResult {

    public EntityQueryForIndexResult(DBUtil dbUtil, String sql, Object[] params) {
        super(dbUtil, sql, params);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected String getRowKey(int columnIndex) throws SQLException {
        return String.valueOf(columnIndex);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void closeQueryResultHandle() {
        closeResultSet();
        closeStatement();
        closeConnection();
    }
}
